package com.ruoyi.shop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shop.mapper.MonthIncomeMapper;
import com.ruoyi.shop.domain.MonthIncome;
import com.ruoyi.shop.service.IMonthIncomeService;

/**
 * 利润月结Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-14
 */
@Service
public class MonthIncomeServiceImpl implements IMonthIncomeService 
{
    @Autowired
    private MonthIncomeMapper monthIncomeMapper;

    /**
     * 查询利润月结
     * 
     * @param id 利润月结主键
     * @return 利润月结
     */
    @Override
    public MonthIncome selectMonthIncomeById(Long id)
    {
        return monthIncomeMapper.selectMonthIncomeById(id);
    }

    /**
     * 查询利润月结列表
     * 
     * @param monthIncome 利润月结
     * @return 利润月结
     */
    @Override
    public List<MonthIncome> selectMonthIncomeList(MonthIncome monthIncome)
    {
        return monthIncomeMapper.selectMonthIncomeList(monthIncome);
    }

    @Override
    public List<MonthIncome> selectMonthIncomeList2(MonthIncome monthIncome) {
        return monthIncomeMapper.selectMonthIncomeList2(monthIncome);
    }

    /**
     * 新增利润月结
     * 
     * @param monthIncome 利润月结
     * @return 结果
     */
    @Override
    public int insertMonthIncome(MonthIncome monthIncome)
    {
        return monthIncomeMapper.insertMonthIncome(monthIncome);
    }

    /**
     * 修改利润月结
     * 
     * @param monthIncome 利润月结
     * @return 结果
     */
    @Override
    public int updateMonthIncome(MonthIncome monthIncome)
    {
        return monthIncomeMapper.updateMonthIncome(monthIncome);
    }

    /**
     * 批量删除利润月结
     * 
     * @param ids 需要删除的利润月结主键
     * @return 结果
     */
    @Override
    public int deleteMonthIncomeByIds(Long[] ids)
    {
        return monthIncomeMapper.deleteMonthIncomeByIds(ids);
    }

    /**
     * 删除利润月结信息
     * 
     * @param id 利润月结主键
     * @return 结果
     */
    @Override
    public int deleteMonthIncomeById(Long id)
    {
        return monthIncomeMapper.deleteMonthIncomeById(id);
    }
}
